package com.fanfq.smplayer;

import java.util.List;

import com.tsai.english.model.MusicItem;

import android.app.Application;
import android.os.Environment;

public class SMPlayerApplication extends Application{
	
	public static String TAG = "MPlayer";
	
	private static SMPlayerApplication instance;
	
	public static final String ROOT_SDCARD_PATH = Environment.getExternalStorageDirectory().getAbsolutePath() + "/music/";
	public static final String SOURCE_URL = "http://tsai-english.googlecode.com/svn/trunk/";
	
	//about player
	private int playerMode = 0;//0 single loop,1 list loop,2 stuff
	private List<MusicItem> playerList;
	private MusicItem currentPlaying;
	private int currentPlayingIndex;
	public List<MusicItem> getPlayerList() {
		return playerList;
	}
	public void setPlayerList(List<MusicItem> playerList) {
		this.playerList = playerList;
	}
	public MusicItem getCurrentPlaying() {
		return currentPlaying;
	}
	public void setCurrentPlaying(MusicItem currentPlaying) {
		this.currentPlaying = currentPlaying;
	}
	public int getCurrentPlayingIndex() {
		return currentPlayingIndex;
	}
	public void setCurrentPlayingIndex(int currentPlayingIndex) {
		this.currentPlayingIndex = currentPlayingIndex;
	}
	public int getPlayerMode() {
		//from profile
		return playerMode;
	}
	public void setPlayerMode(int playerMode) {
		//update profile
		this.playerMode = playerMode;
	}
	
	
	

}
